package cn.youyeku.zsxh;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;

import cn.youyeku.zsxh.common.Contanst;
import cn.youyeku.zsxh.ui.activity.ABS.BaseActivity;


public class AboutUs extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_about_us);
        WebView wb = (WebView) findViewById(R.id.wv_web);
        wb.getSettings().setJavaScriptEnabled(true);
        Intent intent =getIntent();
        Bundle bundle = intent.getExtras();
        int code = bundle.getInt("code");

        //以前的网页 = =
        switch (code){
            case Contanst.ABOUT_US:
                wb.loadUrl("http://119.29.15.35/api/v1/abount/%E5%85%B3%E4%BA%8E%E6%88%91%E4%BB%AC.html");
                break;
            case Contanst.OPEN_CODE:
                wb.loadUrl("http://119.29.15.35/api/v1/abount/%E5%BC%80%E6%94%BE%E6%BA%90%E7%A0%81.html");
                break;
            case Contanst.SEND_HELP_OUERS:
                wb.loadUrl("http://119.29.15.35/api/v1/abount/%E6%84%8F%E8%A7%81%E5%8F%8D%E9%A6%88.html");
                break;
            default:
                break;
        }

    }
}
